package cn.lanyi.block;

import cn.lanyi.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class BlockGetUser {
    public static User blockGetUser(@PathVariable Long id, BlockException e) {
        e.printStackTrace();
        return new User(-1L, "限流","限流了");
    }
}
